const mongoose = require('mongoose');
//分页插件----》
var mongoosePaginate = require('mongoose-paginate');

//约束
var schema = new mongoose.Schema({
   name:String
});
//引入插件
schema.plugin(mongoosePaginate);

//实例化
module.exports=mongoose.model('CateType',  schema, 'catetype'); // Model.paginate()
